From 135f79ef6f7d2bd94d48012b07a251494e5f6c8b Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Wed, 17 Aug 2005 08:52:04 +0000 Subject: [PATCH] Fix compile warning from zero-length printf format string. Signed-off-by: Christian Limpach --- linux-2.6-xen-sparse/arch/xen/kernel/reboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c index d2e204d12d..445daf01e6 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c @@ -264,7 +264,7 @@ static void shutdown_handler(struct xenbus_watch *watch, const char *node) return; } - xenbus_printf("control", "shutdown", ""); + xenbus_write("control", "shutdown", "", O_CREAT); if (strcmp(str, "poweroff") == 0) shutting_down = SHUTDOWN_POWEROFF; -- 2.30.2